"""
所有页面类的基类
"""

from config.config import HOST

# 获取driver


class BasePage:
    def __init__(self, driver):
        self.driver = driver
        self.url = "http://{}{}".format(HOST, self.url)

    def open(self):
        self.driver.get(self.url)

    def close(self):
        self.driver.quit()
